﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.Common;

namespace mfe.bll
{
    public partial class Country
    {
        
        public static DataTable GetCountryList()
        {
            DataTable dt = null;
            try
            {
                mfe.lib.data.Database db = mfe.lib.data.DatabaseFactory.CreateDatabase();
                DbCommand cmd = db.GetSqlStringCommand("select * from Country");
                dt = new DataTable();
                db.LoadDataTable(cmd, dt);
            }
            catch (Exception ex)
            {
                mfe.lib.Logger.Log(ex);
            }
            return dt;
        }
    }
}
